SeatController
This allows you to control seats! Read its WASD data, press some buttons, and cause a war crime against humanity by using seats for networking! (Please don't)
Structures
SeatData
Contains data for the seat.
Fields
wsPower[ 1|0|-1 ] The power for WS. 1 = Forwards, 0 = None, -1 = BackwardsadPower[ 1|0|-1 ] The power for AD. 1 = Left, 0 = None, -1 = RightcharacterName[ string? ] The characters name that is sitting.
JointData
Contains data of a joint.
Fields
leftSpeed[ number ] The left angle speed.rightSpeed[ number ] The right angle speed.leftLimit[ number ] The left angle limit.rightLimit[ number ] The right angle limit.bearingLock[ boolean ] Whether the joint is unlocked or not.
CameraData
Contains data of a seated characters camera.
Fields
position[ number ] The world position of the camera.rotation[ number ] The world rotation of the.direction[ number ] The direction of the camera.fov[ number ] The fov of the camera in degrees.
Functions
getSeatData
SeatController.getSeatData()
Gets data from the connected seat
Returns:
- [ SeatController.SeatData ] The data of the seat
getJointData
SeatController.getJointData()
Gets data from connected joints from the seat
Returns:
- [ SeatController.JointData[] ] The data of multiple joints
getCameraData
SeatController.getCameraData()
Returns the seated characters camera data
Returns:
- [ SeatController.CameraData ] The characters camera data
pressButton
SeatController.pressButton( index )
Presses a button connected to the seat
Arguments:
- index [ integer ] The button to press (0 to 9)
releaseButton
SeatController.releaseButton( index )
Releases a button connected to the seat
Arguments:
- index [ integer ] The button to release (0 to 9)